/*
 * ©  2013
 * All Rights Reserved
 */
package dieci.system;

import dieci.database.PersistentObject;
import dieci.utils.Redondeo;
import java.util.Date;

public class Price implements PersistentObject
{

    private long productId;
    private double priceValue;
    private Date priceDate;

    public Price()
    {
    }

    public Price(double priceValue, Date priceDate)
    {
        this.priceValue = Redondeo.Redondear(priceValue,2);
        this.priceDate = priceDate;
    }

    
    /**
     * Get the value of priceDate
     *
     * @return the value of priceDate
     */
    public Date getPriceDate()
    {
        return priceDate;
    }

    /**
     * Set the value of priceDate
     *
     * @param priceDate new value of priceDate
     */
    public void setPriceDate(Date priceDate)
    {
        this.priceDate = priceDate;
    }


    /**
     * Get the value of priceValue
     *
     * @return the value of priceValue
     */
    public double getPriceValue()
    {
        return priceValue;
    }

    /**
     * Set the value of priceValue
     *
     * @param priceValue new value of priceValue
     */
    public void setPriceValue(double priceValue)
    {
        this.priceValue = Redondeo.Redondear(priceValue, 2);
    }

    /**
     * Get the value of productId
     *
     * @return the value of productId
     */
    public long getProductId()
    {
        return productId;
    }

    /**
     * Set the value of productId
     *
     * @param productId new value of productId
     */
    public void setProductId(long productId)
    {
        this.productId = productId;
    }

}
